package com.modbus.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 服务器端配置
 * @author heyayun
 */
@Data
@Component
@ConfigurationProperties(prefix="modbus.config")
public class ModbusConfig {
    private String address;
    private Integer port;
}
